package com.wmh.baseservice.operationaid.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 运营助手-商品数据-流量来源-选项
 * @author 谢骏
 * @TableName operation_aid_product_trafficsource_options
 * @createDate 2023-07-21 16:33:53
 */
@Data
@Accessors(chain = true)
@TableName("operation_aid_product_trafficsource_options")
public class ProductTrafficSourceOptions implements Serializable {

    /**
     * 主键
     */
    @TableId(value = COL_ID ,type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @TableField(value = COL_NAME)
    private String name;

    /**
     * 父级id 0根级 
     */
    @TableField(value = COL_PARENT_ID)
    private Long parentId;

    /**
     * 创建时间
     */
    @TableField(value = COL_CREATE_TIME)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = COL_UPDATE_TIME)
    private LocalDateTime updateTime;

    /**
     * 是否删除 0否 1是
     */
    @TableField(value = COL_DELETED)
    @TableLogic
    private Integer deleted;


    /**
     * 主键
     */
    public static final String COL_ID = "id";

    /**
     * 名称
     */
    public static final String COL_NAME = "name";

    /**
     * 父级id 0根级 
     */
    public static final String COL_PARENT_ID = "parent_id";

    /**
     * 创建时间
     */
    public static final String COL_CREATE_TIME = "create_time";

    /**
     * 更新时间
     */
    public static final String COL_UPDATE_TIME = "update_time";

    /**
     * 是否删除 0否 1是
     */
    public static final String COL_DELETED = "deleted";

    @TableField(exist = false)
    static final long serialVersionUID = 1L;
}
